package com.tianshi.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders implements Serializable { //订单
    private Long  orderId; //订单id
    private Long  orderSn; //订单号
    private Long  userId; //用户id
    private Long addressId; //地址id
    private Double  totalAmount; //总金额`
    private Double  payAmount; //实际支付金额
    private Double  freightAmount; //运费金额
    private Short orderStatus; //订单状态 0->待付款 1->待发货 2->待收货 3->待评价 4->已完成 5->已取消 6->售后中
    private Short paymentMethod;  //支付方式 1->微信 2->支付宝 3->银联 4->其他
    private LocalDateTime paymentTime; //支付时间，付成功后的时间
    private LocalDateTime createdAt; //创建时间，购物车中点击结算就会生成订单，结算前要确定支付方式和地址
}
